<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <h1><%- title %></h1>
    <p><%- content %></p>
    <p><span class="num">5</span>秒后跳转至：<a href="<%- href  %>"><%- hrefTxt %></a></p>
    <script>
        let num = 5;
        setInterval(() => {
            num--;
            if (num<0) {
                location.href = '<%- href %>'
            } else {
                document.querySelector('.num').innerHTML = num
            }
        }, 1000);
    </script>
</body>
</html>